#Bank Account

#初始化
class BankAccount:
    def __init__(self,name,balance):
        self.name=name
        self.balance=balance

    def deposit(self,amount):
        self.balance=self.balance+amount

    def withdraw(self,amount):
        if self.balance>amount:
            self.balance=self.balance-amount
        else:
            print("您的余额不足2000,无法取出！")
    def get_balance(self):
        return self.balance

account = BankAccount("张三",1000)
account.deposit(500)
print(account.get_balance())
account.withdraw(200)
print(account.get_balance())
account.withdraw(2000)



account2 = BankAccount("李四",5000)
account2.deposit(1000)
print(account2.get_balance())
account2.withdraw(1500)
print(account2.get_balance())

